
#include "top_widget.h"
#include <QGridLayout>
#include <QLabel>
#include <QLineEdit>

TopWidget::TopWidget(QWidget *parent) : QWidget(parent)
{

}

void TopWidget::Init()
{
    QGridLayout *grid = new QGridLayout;
    QLabel *nsorExportTimeLUs = new QLabel("NSOR_EXPO_TIME_L_US");
    QLineEdit *nsorEdit = new QLineEdit("0");
    grid->addWidget(nsorExportTimeLUs, 0, 0);
    grid->addWidget(nsorEdit, 0, 1);

    QLabel *ispGain = new QLabel("ISP_GAIN");
    QLineEdit *ispGainEdit = new QLineEdit("0");
    grid->addWidget(ispGain, 0, 2);
    grid->addWidget(ispGainEdit, 0, 3);

    QLabel *sensorGain = new QLabel("SONSOR_GAIN");
    QLineEdit *sensorGainEdit = new QLineEdit("0");
    grid->addWidget(sensorGain, 0, 4);
    grid->addWidget(sensorGainEdit, 0, 5);

    QLabel *nsorExpoTimeLLine = new QLabel("NSOR_EXPO_TIME_L_LINE");
    QLineEdit *nsorExpoTimeLLineEdit = new QLineEdit("0");
    grid->addWidget(nsorExpoTimeLLine, 1, 0);
    grid->addWidget(nsorExpoTimeLLineEdit, 1, 1);

    QLabel *aeCurrentLuxIndEx = new QLabel("AE_CURRENT_LUX_INDEX");
    QLineEdit *aeCurrentLuxIndExEdit = new QLineEdit("0");
    grid->addWidget(aeCurrentLuxIndEx, 1, 2);
    grid->addWidget(aeCurrentLuxIndExEdit, 1, 3);

    this->setLayout(grid);
}
